package main;

import main.dialogs.LoginDialog;
import main.users.FactageUser;
import main.users.NewPasswordDialog;

import javax.swing.*;
import java.awt.*;

public class FactageApp {

    public static MainApp ma;
    public static FactageUser user;

    public static void main(String[] args) {
//        System.setProperty("primavera.bootstrap.home","D:\\P6IntegrationAPI_");
        Toolkit.getDefaultToolkit().setDynamicLayout(true);

        try {
            UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
        } catch (UnsupportedLookAndFeelException | InstantiationException | IllegalAccessException | ClassNotFoundException ignored) {}

//        user = null;
//        new LoginDialog();

//        if (user!= null) {
//            if (user.getNewUser()) new NewPasswordDialog();
            ma = new MainApp();
            ma.setIcon();
            ma.setVisible(true);
//        }
    }

}
